import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';
import {routes} from './routes';
import iView from 'iview';
import 'iview/dist/styles/iview.css'; 
import axios from 'axios';
import VueAxios from 'vue-axios';
import {store} from './store';//后面的index.js可以忽略不写




axios.defaults.headers.post['Content-Type']='application/x-www-form-urlencoded';

Vue.use(VueAxios,axios);
Vue.use(VueRouter);
Vue.use(iView);

const router=new VueRouter({
  routes:routes,
  mode:'history'
})

new Vue({
  el: '#app',
  store,
  router,
  render: h => h(App)
})
